home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
logbatch
/
envsiz.arc
/
ENVXPAND.DOC
< prev
next >
Wrap
Text File
|
1980-01-01
|
3KB
|
68 lines
ENVXPAND: Expand your ENVIRONMENT to 1K
DOS 2.0 and later releases give you and your programs the means to
communicate through ENVIRONMENT strings, but no way to expand the rather
cramped space originally allotted for the purpose. Since PATH, COMSPEC and
any prompt you may set all go there, you quickly run out.
ENVXPAND provides a way of expanding your environment to 1024
bytes, which should give you plenty of space for most uses. The original
DOS strings take up less than an eighth of this space.
Thus you have plenty of space for a long path statement -- or for
a complicated prompt string (see the ANSI.SYS writeup for possibilities)
-- or to make use of the new environment functions of BASIC 3.0.
As a side benefit, ENVXPAND gives you a large keyboard buffer, too.
To use ENVXPAND, just follow these two easy steps:
Step 1: Add the following line to your CONFIG.SYS file:
DEVICE=ENVXPAND.SYS
This line should be the first one in your CONFIG.SYS file, ahead
of any other installed devices or programs.
Step 2: Rename your AUTOEXEC.BAT file on that disk or diskette to
AUTOEXEK.BAT.
Next time you boot from that disk or diskette, the system will
expand your ENVIRONMENT string space to 1K. It does this by adding
place-holder strings PH0 through PH9 to your ENVIRONMENT through the SET
command and then removing them. (You cannot do this from a BAT file and
it is tedious to do it from the keyboard every time you boot.) Finally,
ENVXPAND runs your AUTOEXEK.BAT file just as DOS runs your AUTOEXEC.BAT file
under normal circumstances.
That's all there is to it. There are no co-residence problems because
no new programs or interrupt handlers have been added to your system, only
environment and keyboard buffer space.
Also included is the program ENVINUSE.COM. It will tell you how much
of your ENVIRONMENT space is in use, including the null (00) delimiters of
the strings. You will find that you can fill up the environment with up
to 1,024 bytes (that's hex 400) after booting with ENVXPAND.
If you are an individual computer user and find this program useful,
feel free to copy it for friends or upload it for free downloading on
bulletin boards. Those wishing to distribute my copyrighted program in
connection with or for use with their own products should contact me
at the address below.
If you find this copyrighted program useful, please help me repay
my company for the time I spent conceiving and developing it through a
guilt-free contribution ($2-$5 suggested for a single machine) to:
SAUL EHRMANN
1310 College Avenue, #1275
Boulder, Colorado, 80302
I'm trying to sell my company on using the "shareware" concept for
providing such programs to the public, since they cannot be economically
sold through the normal software distribution channels. Please help me make
my case by contributing if you find ENVXPAND useful. I'd also like to
hear of any problems or comments, whether or not you choose to contribute.